package com.bdqn.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.pojo.Right;
import com.bdqn.pojo.Role;

import java.awt.print.Pageable;
import java.util.List;

public interface IRoleService {
    public List<Role> findAllRoles();

    public Role saveRole(Role role);//新增或修改
    public void deleteRoleById(Long roleId);//删除
    public void deleteRole(Role role);
    public Role getRole(Long roleId);
    public Page<Role>findRole(String roleName , Pageable pageable);

    public List<Right> findRightsByRole(Role role);
    public List<Right> findAllRights();
}
